<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <script src="/js/resize.js"></script>
    <% include baiduTJ.html %>
    <link rel="stylesheet" href="/css/myreset.min.css">
    <link rel="stylesheet" href="/fightDesc/css/fightdesc.css">
    <link rel="stylesheet" href="/css/animate.css">
    <title>壳牌劲霸 焕新有礼</title>
</head>
<body>
<div class="container">
    <div class="title"></div>
    <div class="word"></div>
    <div class="oile-b"></div>
    <div class="oile"></div>
</div>

<div class="btn animated infinite pulse">

</div>

<script src="/js/zepto.1.1.6.min.js"></script>
<script src="/js/base.2.0.js"></script>
<script src="/js/jweixin-1.0.0.js"></script>
<script src="/js/weixin.js"></script>
<% include wxshare.html %>

<script>
    $(".btn").on("tap", function () {
        wx.chooseImage({
            count: 1, // 默认9
            sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图，默认二者都有
            sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机，默认二者都有
            success: function (res) {
                var localIds = res.localIds; // 返回选定照片的本地ID列表，localId可以作为img标签的src属性显示图片
                wx.uploadImage({
                    localId: localIds[0], // 需要上传的图片的本地ID，由chooseImage接口获得
                    isShowProgressTips: 1, // 默认为1，显示进度提示
                    success: function (res) {
                        media_id = res.serverId; // 返回图片的服务器端ID

                        window.location.href = "/index/shell/fight/upload?media_id=" + media_id + "&local_id=" + localIds[0];
                    }
                });
            }
        });
    });
</script>
</body>
</html>